import {ElNotification} from "element-plus";

export function error(msg){
    ElNotification.closeAll();
    ElNotification({
        title: '失败(error)',
        message: msg,
        type: 'error',
    })
}

export function success(msg){
    ElNotification.closeAll();
    ElNotification({
        title: '成功(success)',
        message: msg,
        type: 'success',
    })
}